/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Data;

import java.io.Serializable;
import java.util.ArrayList;

/**
 *
 * @author Cristina
 */

public class User implements Serializable{

    private int userId;
    private String firstName;
    private String lastName;
    private ArrayList ticketList; // lista cu serile biletelor ale acestui client
    private int kmNumber;

    public User(){}
    public User(int userId, String firstName, String lastName,int kmNumber)
    {
           this.userId = userId;
           this.firstName = firstName;
           this.lastName = lastName;
           this.kmNumber = kmNumber;
           ticketList = new ArrayList();

    }

    //Get and set mehtods:

    public int getUserId() { return userId; }
    public void setUserId(int userId) { this.userId = userId; }

    public String getFirstName() { return firstName; }
    public void setFirstName(String firstName) {  this.firstName = firstName; }

    public String getLastName() { return lastName; }
    public void setLastName(String lastName) { this.lastName = lastName;  }

    public ArrayList getTicketList() { return ticketList; }
    public void setTicketList(ArrayList ticketList) { this.ticketList = ticketList; }

    public int getKmNumber() { return kmNumber;  }
    public void setKmNumber(int kmNumber) { this.kmNumber = kmNumber; }


    


}
